package com.pqc.tbk.service.admin.account;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pqc.tbk.dao.user.UserDao;
import com.pqc.tbk.entity.account.User;

@Service
@Transactional(readOnly = true)
public class UserServiceImpl implements UserService {
	private UserDao userDao;

	@Override
	public Page<User> getPage(final String condition, final Pageable pageable) {
		return userDao.getSearchPage(condition, pageable, User.class);
	}

	@Autowired
	public void setUserDao(final UserDao userDao) {
		this.userDao = userDao;
	}

}
